﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginUserControl.ascx.cs" Inherits="WebUI.Views.Shared.LoginUserControl" %>
<%@ Import Namespace="System.Web.Mvc.Html"%>
<%
    if (Request.IsAuthenticated) {
%>
        Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
        [ <%= Html.ActionLink("Logout", "Logout", "Login") %> ]
<%
    }
    else {
%> 
        [ <%= Html.ActionLink("Login","Index","Login") %> ]
<%
    }
%>